<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/site/login', function () {
//    return view('welcome');
//});

Route::get("/site/index","Site\HomeController@index")->name("home");
Route::get("/site/login","Site\LoginController@login")->name("login");
Route::get("/site/register","Site\LoginController@register")->name("register");
Route::post("/site/login","Site\LoginController@doLogin")->name("login");
Route::post("/site/register","Site\LoginController@doRegister")->name("register");



Route::get("/admin/login","Admin\LoginController@login")->name("admin.login");

